import request from "@/utils/request";
interface WarinSetting {
  activityId?: string | string[] | null
  isEnable?: number
  type?: number
}
export async function getWarnSet(params?: WarinSetting) {
  return request('/teach-admin/admin/warningSetting/list', {
    method: 'POST',
    data: params
  });
}
export async function getEditWarn(params?: any) {
  return request('/teach-admin/admin/warningRule/updateBatch', {
    method: 'POST',
    data: params
  });
}
export async function getWarnUpdate(params?: any) {
  return request('/teach-admin/admin/warningSetting/update', {
    method: 'POST',
    data: params
  });
}
export async function getWarnList(params?: any) {
  return request('/teach-admin/admin/warningRecord/list', {
    method: 'POST',
    data: params
  });
}
export async function getWarnRecordFollow(params?: any) {
  return request('/teach-admin/admin/warningRecord/follow', {
    method: 'POST',
    data: params
  });
}
export async function getWarnDefault(params?: any) {
  return request('/teach-admin/admin/warningSetting/saveDefault', {
    method: 'POST',
    data: params
  });
}
export async function scheduleTaskWarningRule(params?: any) {
  return request('/teach-admin/admin/warningRule/scheduleTaskWarningRule', {
    method: 'POST',
    data: params
  });
}
export async function exportFile(params?: any) {
  return request('/teach-admin/admin/warningRecord/export', {
    method: 'POST',
    responseType: 'blob',
    data: params
  });
}
export async function warningCount(params?: any) {
  return request('/teach-admin/admin/warningRecord/count', {
    method: 'POST',
    data: params
  });
}